<div class="personas index">
	<h2><?php __('Personas');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id');?></th>
			<th><?php echo $this->Paginator->sort('ci_rif');?></th>
			<th><?php echo $this->Paginator->sort('nit');?></th>
			<th><?php echo $this->Paginator->sort('contacto');?></th>
			<th><?php echo $this->Paginator->sort('nombre');?></th>
			<th><?php echo $this->Paginator->sort('created');?></th>
			<th><?php echo $this->Paginator->sort('email');?></th>
			<th><?php echo $this->Paginator->sort('direccion');?></th>
			<th><?php echo $this->Paginator->sort('zonapartidacurso');?></th>
			<th><?php echo $this->Paginator->sort('boletin');?></th>
			<th><?php echo $this->Paginator->sort('empresa_id');?></th>
			<th><?php echo $this->Paginator->sort('medio_publicitario_id');?></th>
			<th><?php echo $this->Paginator->sort('usuario');?></th>
			<th><?php echo $this->Paginator->sort('clave');?></th>
			<th><?php echo $this->Paginator->sort('activo');?></th>
			<th><?php echo $this->Paginator->sort('usuario_id');?></th>
			<th><?php echo $this->Paginator->sort('telefono');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($personas as $persona):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $persona['Persona']['id']; ?>&nbsp;</td>
		<td><?php echo $persona['Persona']['ci_rif']; ?>&nbsp;</td>
		<td><?php echo $persona['Persona']['nit']; ?>&nbsp;</td>
		<td><?php echo $persona['Persona']['contacto']; ?>&nbsp;</td>
		<td><?php echo $persona['Persona']['nombre']; ?>&nbsp;</td>
		<td><?php echo $persona['Persona']['created']; ?>&nbsp;</td>
		<td><?php echo $persona['Persona']['email']; ?>&nbsp;</td>
		<td><?php echo $persona['Persona']['direccion']; ?>&nbsp;</td>
		<td><?php echo $persona['Persona']['zonapartidacurso']; ?>&nbsp;</td>
		<td><?php echo $persona['Persona']['boletin']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($persona['Empresa']['nombre'], array('controller' => 'personas', 'action' => 'view', $persona['Empresa']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($persona['MedioPublicitario']['nombre'], array('controller' => 'medios_publicitarios', 'action' => 'view', $persona['MedioPublicitario']['id'])); ?>
		</td>
		<td><?php echo $persona['Persona']['usuario']; ?>&nbsp;</td>
		<td><?php echo $persona['Persona']['clave']; ?>&nbsp;</td>
		<td><?php echo $persona['Persona']['activo']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($persona['Usuario']['nombre'], array('controller' => 'personas', 'action' => 'view', $persona['Usuario']['id'])); ?>
		</td>
		<td><?php echo $persona['Persona']['telefono']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $persona['Persona']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $persona['Persona']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $persona['Persona']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $persona['Persona']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('New Persona', true), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('List Personas', true), array('controller' => 'personas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Empresa', true), array('controller' => 'personas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Medios Publicitarios', true), array('controller' => 'medios_publicitarios', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Medio Publicitario', true), array('controller' => 'medios_publicitarios', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Candidatos Observaciones', true), array('controller' => 'candidatos_observaciones', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Candidato Observacion', true), array('controller' => 'candidatos_observaciones', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Cartas Pagos', true), array('controller' => 'cartas_pagos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Carta Pago Persona', true), array('controller' => 'cartas_pagos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Clases', true), array('controller' => 'clases', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Clase', true), array('controller' => 'clases', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Encuestas', true), array('controller' => 'encuestas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Encuesta', true), array('controller' => 'encuestas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Facturas', true), array('controller' => 'facturas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Factura Persona', true), array('controller' => 'facturas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Inasistencias', true), array('controller' => 'inasistencias', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Inasistencia', true), array('controller' => 'inasistencias', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Instructores', true), array('controller' => 'instructores', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Instructor', true), array('controller' => 'instructores', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Instructores Cursos', true), array('controller' => 'instructores_cursos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Instructor Curso', true), array('controller' => 'instructores_cursos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Personas Emails', true), array('controller' => 'personas_emails', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Persona Email', true), array('controller' => 'personas_emails', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Personas Observaciones', true), array('controller' => 'personas_observaciones', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Persona Observacion', true), array('controller' => 'personas_observaciones', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Personas Planes Hosting', true), array('controller' => 'personas_planes_hosting', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Persona Plan Hosting', true), array('controller' => 'personas_planes_hosting', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Personas Telefonos', true), array('controller' => 'personas_telefonos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Persona Telefono', true), array('controller' => 'personas_telefonos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Presupuestos', true), array('controller' => 'presupuestos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Presupuesto Persona', true), array('controller' => 'presupuestos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Recibos Gastos', true), array('controller' => 'recibos_gastos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Recibo Gasto Usuario', true), array('controller' => 'recibos_gastos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Recibos Ventas', true), array('controller' => 'recibos_ventas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Recibo Venta Persona', true), array('controller' => 'recibos_ventas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Recibos Ventas Cursos', true), array('controller' => 'recibos_ventas_cursos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Recibo Venta Curso', true), array('controller' => 'recibos_ventas_cursos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Recordatorios Cartas Pagos', true), array('controller' => 'recordatorios_cartas_pagos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Recordatorio Carta Pago Persona', true), array('controller' => 'recordatorios_cartas_pagos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Solicitudes', true), array('controller' => 'solicitudes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Solicitud', true), array('controller' => 'solicitudes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Solicitudes Espera', true), array('controller' => 'solicitudes_espera', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Solicitud Espera Persona', true), array('controller' => 'solicitudes_espera', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Solicitudes Eventos', true), array('controller' => 'solicitudes_eventos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Solicitud Evento', true), array('controller' => 'solicitudes_eventos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Grupos', true), array('controller' => 'grupos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Grupo', true), array('controller' => 'grupos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Tipos Personas', true), array('controller' => 'tipos_personas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Tipo Persona', true), array('controller' => 'tipos_personas', 'action' => 'add')); ?> </li>
	</ul>
</div>